package chiss.org.draft.ihs;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for HealthStatistics.Indicator complex type.
 *
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 *
 * <pre>
 * &lt;complexType name="HealthStatistics.Indicator">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="id" type="{urn:org.chiss:draft:ihs}string"/>
 *         &lt;element name="display" type="{urn:org.chiss:draft:ihs}string" minOccurs="0"/>
 *         &lt;element name="unit" type="{urn:org.chiss:draft:ihs}string" minOccurs="0"/>
 *         &lt;element name="expression" type="{urn:org.chiss:draft:ihs}Expression" minOccurs="0"/>
 *         &lt;element name="description" type="{urn:org.chiss:draft:ihs}string" minOccurs="0"/>
 *         &lt;element name="frequency" type="{urn:org.chiss:draft:ihs}FrequencyUse" maxOccurs="unbounded" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HealthStatistics.Indicator", propOrder = {"id", "display",
        "unit", "expression", "description", "frequency"})
public class HealthStatisticsIndicator {

    @XmlElement(required = true)
    protected String id;
    protected String display;
    protected String unit;
    protected Expression expression;
    protected String description;
    @XmlElement(nillable = true)
    protected List<FrequencyUse> frequency;

    /**
     * Gets the value of the id property.
     *
     * @return possible object is {@link String }
     */
    public String getId() {
        return id;
    }

    /**
     * Sets the value of the id property.
     *
     * @param value allowed object is {@link String }
     */
    public void setId(String value) {
        this.id = value;
    }

    /**
     * Gets the value of the display property.
     *
     * @return possible object is {@link String }
     */
    public String getDisplay() {
        return display;
    }

    /**
     * Sets the value of the display property.
     *
     * @param value allowed object is {@link String }
     */
    public void setDisplay(String value) {
        this.display = value;
    }

    /**
     * Gets the value of the unit property.
     *
     * @return possible object is {@link String }
     */
    public String getUnit() {
        return unit;
    }

    /**
     * Sets the value of the unit property.
     *
     * @param value allowed object is {@link String }
     */
    public void setUnit(String value) {
        this.unit = value;
    }

    /**
     * Gets the value of the expression property.
     *
     * @return possible object is {@link Expression }
     */
    public Expression getExpression() {
        return expression;
    }

    /**
     * Sets the value of the expression property.
     *
     * @param value allowed object is {@link Expression }
     */
    public void setExpression(Expression value) {
        this.expression = value;
    }

    /**
     * Gets the value of the description property.
     *
     * @return possible object is {@link String }
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets the value of the description property.
     *
     * @param value allowed object is {@link String }
     */
    public void setDescription(String value) {
        this.description = value;
    }

    /**
     * Gets the value of the frequency property.
     *
     * <p>
     * This accessor method returns a reference to the live list, not a
     * snapshot. Therefore any modification you make to the returned list will
     * be present inside the JAXB object. This is why there is not a
     * <CODE>set</CODE> method for the frequency property.
     *
     * <p>
     * For example, to add a new item, do as follows:
     *
     * <pre>
     * getFrequency().add(newItem);
     * </pre>
     *
     *
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link FrequencyUse }
     */
    public List<FrequencyUse> getFrequency() {
        if (frequency == null) {
            frequency = new ArrayList<FrequencyUse>();
        }
        return this.frequency;
    }

    public void setFrequency(List<FrequencyUse> frequency) {
        this.frequency = frequency;
    }

}
